package com.example.service.serviceImple;

import com.example.dao.HistoryDao;
import com.example.entity.History;
import com.example.service.HistoryService;
import com.example.util.BeanFactroy;

public class HistoryServiceImpl implements HistoryService {
    private HistoryDao historyDao =  BeanFactroy.createBean(HistoryDao.class);
    @Override
    public boolean addHistory(History history) {
        return historyDao.addHistory(history);
    }

    @Override
    public History isHistory(Long userId, Long typeId, Integer type) {
        return historyDao.isHistory(userId,typeId,type);
    }

    @Override
    public int updateTime(Long userId, Long typeId, Integer type) {
        return historyDao.updateTime(userId,typeId,type);
    }
}
